import axios from 'axios';

export async function fetchData() {
    try {
        const config = {
            headers: {
            }
        };
        const response = await axios.get('http://test.codelover.club/api/curriculum/list',config);
        return response.data;
    } catch (error) {
        console.error('There has been a problem with your axios operation:', error);
        throw error;
    }
}